home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / qwhite.zip / EXTEND.TEC < prev    next >
Text File  |  1992-03-09  |  6KB  |  90 lines

  1. ID:ET Extended Memory and DESQview
  2. Quarterdeck Technical Note #106
  3. by Dan Sallitt
  4. last revision:  13 February 1992
  5.  
  6. Extended memory is memory with addresses beginning at 1024K (1 megabyte).  
  7. Extended memory can only exist on machines with address buses capable of 
  8. accessing more than 1024K, and requires a 286 processor or higher; the AT was 
  9. the first machine that supported extended memory.  DOS can only access the 
  10. first 1024K of any machine's address space, and therefore cannot access 
  11. extended memory directly; programs that access extended memory generally must 
  12. go into protected mode to do so.  Real-mode programs that use extended memory, 
  13. such as VDISK.SYS, do not run their code above 1024K; they go into protected 
  14. mode long enough to store data in extended memory, then return to real mode. 
  15. Extended memory should not be confused with expanded memory, which does not 
  16. occupy specific memory addresses and which is associated with special mapping 
  17. hardware that allows it to appear as if it is located below 1024K. 
  18.  
  19. DESQview cannot run conventional, real-mode DOS programs in extended memory 
  20. (unless the extended memory is converted into expanded memory, a process that 
  21. is easily accomplished on a 386 machine with the help of Quarterdeck's QEMM-
  22. 386).  We can only accomplish the difficult feat of multitasking beyond 640K 
  23. with the aid of the hardware mapping capabilities that expanded memory can 
  24. provide.  Extended memory, by contrast, is not intelligent memory:  it simply 
  25. sits above 1024K.
  26.  
  27. In 1986 Quarterdeck discovered a loophole in DOS that allows programs to 
  28. access the first 64K of extended memory without going into protected mode.  
  29. DESQview 2.00 and later versions come with a driver, QEXT.SYS, which, when 
  30. placed in the CONFIG.SYS file and used in conjunction with our XDV.COM or 
  31. DV.COM loaders, allows DESQview to take 63K of its code out of conventional 
  32. memory and place it in extended memory between 1024K and 1088K.  QEXT.SYS is 
  33. usually only needed on 286 systems, as QEMM-386 is capable of accomplishing 
  34. the same task on 386 systems.
  35.  
  36. In 1988 Microsoft, using the same loophole discovered earlier by Quarterdeck, 
  37. announced the existence of the Extended Memory Specification (XMS), which 
  38. governs DOS-based access to the first 64K of extended memory as well as 
  39. protected-mode access to the rest of extended memory and access to blocks of 
  40. memory between 640K and 1024K.  The XMS has become a standard for extended 
  41. memory allocation, and DESQview 2.26 and later versions support running 
  42. programs that allocate memory through the XMS inside DESQview windows.  In 
  43. addition, the copy of QEXT.SYS that comes with DESQview 2.26 and later 
  44. versions functions as an XMS manager, and can, if desired, give other programs 
  45. access to the first 64K of extended memory instead of DESQview.  (Only one 
  46. program at a time can use this 64K block.)  QEXT.SYS performs the same XMS 
  47. functions as Microsoft's XMS manager HIMEM.SYS, and should be used instead of, 
  48. not in addition to, HIMEM.SYS.  Though DESQview cannot run conventional, real-
  49. mode DOS programs in extended memory, it can swap DOS programs back and forth 
  50. from extended memory -- if the extended memory is used as a RAM disk and if 
  51. the drive letter of the RAM disk is entered in the SWAP field of the DESQview 
  52. Setup in the Logical Drives section.  Programs that are swapped out are not 
  53. running, but swapping programs back and forth to extended memory (which occurs 
  54. automatically under the above circumstances when DESQview runs out of 
  55. multitasking memory) is much faster than swapping to the hard disk.
  56.  
  57. It has become increasingly common for large programs to take advantage of 
  58. protected mode to run in extended memory, using supplementary utilities called 
  59. DOS Extenders to handle transitions between protected mode and real mode.  To 
  60. make it possible for DOS Extenders to coexist with 386 memory managers, 
  61. Quarterdeck and Phar Lap (a leading manufacturer of DOS Extenders) 
  62. collaborated in 1988 to create the VCPI (Virtual Control Program Interface) 
  63. specification.  Many other vendors, including all major manufacturers of DOS 
  64. Extenders, now support the VCPI.  DESQview users who also have QEMM-386 
  65. (version 4.1 or later) can run VCPI protected mode programs in DESQview 
  66. windows alongside DOS-based programs, without the need to reserve separate 
  67. sections of extended and expanded memory for the different programs.  The VCPI 
  68. is a specification for 386 and 486 processors only.  DESQview 2.26 and later 
  69. versions can run multiple protected mode programs on 286 systems if the 
  70. protected mode programs use XMS services to access extended memory.  However, 
  71. it is impossible on 286 systems to convert extended and expanded memory back 
  72. and forth on demand, as can be done on a 386 system or higher; the 286 systems 
  73. must be configured with enough extended memory to run the DOS Extender 
  74. programs and enough expanded memory to satisfy DESQview's needs and the needs 
  75. of other programs that use expanded memory.  
  76.  
  77. Microsoft Windows 3.0, which can go into protected mode and run Windows-based 
  78. applications in extended memory on a 286 system or higher, is an example of a 
  79. DOS Extender-type program that is not a client of the VCPI.  However, special 
  80. adjustments were made to DESQview 2.3 and QEMM 5.1 to allow Windows 3.0 to run 
  81. in its standard mode (which uses the processor's protected mode) inside a 
  82. DESQview window alongside other applications.
  83.  
  84.  
  85.   ************************************************************************
  86.   *This technical note may be copied and distributed freely as long as it*
  87.   *is distributed in its entirety and it is not distributed for profit.  *
  88.   *         Copyright (C) 1990-2 by Quarterdeck Office Systems           *
  89.   ************************ E N D   O F   F I L E *************************
  90.